package file.a03;

import java.io.FileReader;
import java.io.IOException;

public class FileReadTest {
    public static void main(String[] args) throws IOException {
        try(FileReader fr=new FileReader("IO-DEMO.iml")){
        char[] cbuf=new char[32];
        int hasRead=0;
            while((hasRead=fr.read(cbuf))>0){
                System.out.println(new String(cbuf,0,hasRead));
            }
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
